<?php 
/* SVN FILE: $Id$ */
/* EventType Test cases generated on: 2010-02-13 15:11:19 : 1266066679*/
App::import('Model', 'EventType');

class EventTypeTestCase extends CakeTestCase {
	var $EventType = null;
	var $fixtures = array('app.event_type');

	function startTest() {
		$this->EventType =& ClassRegistry::init('EventType');
	}

	function testEventTypeInstance() {
		$this->assertTrue(is_a($this->EventType, 'EventType'));
	}

	function testEventTypeFind() {
		$this->EventType->recursive = -1;
		$results = $this->EventType->find('first');
		$this->assertTrue(!empty($results));

		$expected = array('EventType' => array(
			'id' => 1,
			'title' => 'Lorem ipsum dolor sit amet',
			'body_template' => 'Lorem ipsum dolor sit amet, aliquet feugiat. Convallis morbi fringilla gravida,phasellus feugiat dapibus velit nunc, pulvinar eget sollicitudin venenatis cum nullam,vivamus ut a sed, mollitia lectus. Nulla vestibulum massa neque ut et, id hendrerit sit,feugiat in taciti enim proin nibh, tempor dignissim, rhoncus duis vestibulum nunc mattis convallis.'
		));
		$this->assertEqual($results, $expected);
	}
}
?>